// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router/index'
import iView from 'iview' // 引入iview依赖
import 'iview/dist/styles/iview.css' // 引入iview css样式
import Vuex from 'vuex'
import store from './store/store'
// import axios from 'axios'
// axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded'
//
// axios.defaults.baseURL = 'http://localhost:8888/api/'
//
// Vue.prototype.$ajax = axios

Vue.use(Vuex)
Vue.config.productionTip = false
Vue.use(iView) // 使用iview组件

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
